<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Login</title>
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}"  href="../../css/bootstrap.min.css"/>
    <link rel="stylesheet" th:href="@{/css/signin.css}"  href="../../css/signin.css"/>
</head>
<body onload="$('#username').focus();">
<div class="container" style="margin-top: 80px;">
    <div class="row row-centered" >
        <div class="well col-md-6 col-centered" >
            <h2>欢迎登录</h2>
            <p th:if="${param.logout}" class="alert">You have been logged out</p>
            <p th:if="${param.error}" class="alert-error">There was an error, please try again</p>
            <form th:action="@{/login}" action="/login"  method="post" role="form">
                <div class="input-group input-group-md">
                    <span class="input-group-addon"><i class="glyphicon glyphicon-user" aria-hidden="true"></i></span>
                    <input type="text" class="form-control" id="username" name="username" placeholder="请输入用户ID"/>
                </div>
                <div class="input-group input-group-md" style="margin-top: 10px;">
                    <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
                    <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码"/>
                </div>
                <br/>
                <button type="submit" class="btn btn-primary btn-block" style="margin-top: 10px;">登录</button>
            </form>
        </div>
    </div>
</div>

<script type="text/javascript" src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
<script type="text/javascript" src="../static/js/tether.min.js" th:src="@{/js/tether.min.js}"></script>
<script type="text/javascript" src="../static/js/bootstrap.min.js" th:src="@{/js/bootstrap.min.js}"></script>
</body>
</html>